home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol A-4 / (Vol A-4) Vol. A4.iso / Games / puppy_red.swf / scripts / frame_1 / DoAction.as < prev   
Text File  |  2008-03-11  |  688b  |  39 lines

  1. function sendScore()
  2. {
  3.    sendOb.gCode = 2;
  4.    sendob.score = score;
  5.    scoreURL = "/servlet/trid.game.GameResultServlet";
  6.    sendOb.onData = function()
  7.    {
  8.       this.removeMovieClip();
  9.    };
  10. }
  11. function urlChk()
  12. {
  13.    var i = 0;
  14.    while(i < _url.length - 10)
  15.    {
  16.       if(_url.substr(i,12) == "puppyred.com")
  17.       {
  18.          return 1;
  19.       }
  20.       i++;
  21.    }
  22.    return 1;
  23. }
  24. fscommand("trapallkeys");
  25. levelup = 0;
  26. if(!originallevel)
  27. {
  28.    originallevel = userlevel.split("")[0];
  29.    userlevel = userlevel.split("")[1];
  30. }
  31. userlevel = 1;
  32. stopAllSounds();
  33. if(!urlChk())
  34. {
  35.    stop();
  36.    fscommand("quit");
  37.    getUrl("javascript:window.close();", "");
  38. }
  39.